/**
 * @author:linjiye
 * @date: 2024/01/13
 * @desc: 自定义钩子：异步清除指定本地化数据
 **/
import AsyncStorage from "@react-native-async-storage/async-storage";

const useRemoveStorage = async (key:string) => {
    try {
        await AsyncStorage.removeItem(key);
        // console.log('数据已清空');
    } catch (e) {
        console.error('删除数据时出错:', e);
    }
};

export default useRemoveStorage